Private Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Long, ByVal hWndInsertAfter As Long, ByVal X As Long, ByVal Y As Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long
Const HWND_TOPMOST = -1
Const SWP_NOACTIVATE = &H10
Const SWP_SHOWWINDOW = &H40
Private Sub AdvClockControl1_Alarm(ByVal AlarmTime As Date)
Titel = "AdvClockControl - Demo"
Msg = "Alarm at: " & AlarmTime
Antwort = MsgBox(Msg, 48, Titel)
End Sub
Private Sub Form_Load()
SetWindowPos Me.hwnd, HWND_TOPMOST, 0, 0, 450, 320, SWP_NOACTIVATE Or SWP_SHOWWINDOW